package cn.edu.gench.learn.day2;

/**
 * @auther zhuzhongbiao
 * @date 2017/3/22 0022
 */
public class Operator {

    public static void main(String[] args) {
        int a = 10;
        int b = 20;
        int c = 25;
        int d = 25;
        System.out.println("a + b = " + (a + b) );
        System.out.println("a - b = " + (a - b) );
        System.out.println("a * b = " + (a * b) );
        System.out.println("b / a = " + (b / a) );
        System.out.println("b % a = " + (b % a) );
        System.out.println("c % a = " + (c % a) );
        System.out.println("a++   = " +  (a++) );
//        System.out.println("b--   = " +  (a--) );
        System.out.println("d++   = " +  (d++) + "==" + d);  //25  25
        System.out.println(d);
        System.out.println("++d   = " +  (++a) );  //10  11
        //a++  a = a + 1
    }
}
